package com.oneinlet

import com.oneinlet.server.YCServer

/**
 * Created by WangZiHe on 2019/1/7/007
 * QQ/WeChat:648830605
 * QQ-Group:368512253
 * Blog:www.520code.net
 * Github:https://github.com/yancheng199287
 */

fun main(args: Array<String>) {
    val appPort = AppConf.getStringValue()["appPort"]!!.toInt()
    val localHost = AppConf.getStringValue()["localHost"]!!
    val serverPort = AppConf.getStringValue()["serverPort"]!!.toInt()
    val path = System.getProperty("user.dir")
    val info = "hi，welcome to use pandora， if you have question，join my QQ-Group:368512253 \ncurrent path：$path \nappPort:$appPort localHost:$localHost \nserverPort:$serverPort "
    println(info)
    val ycServer = YCServer(serverPort, appPort)
    ycServer.startService()

}